package sunbao.ido.experimentalField.listener;

import org.springframework.stereotype.Component;

/**
 * \* User: MeiZhongHao
 * \* Date: 2018-11-13
 * \* Time: 18:45
 * \* Description:
 * \
 */
@Component
public class UserSmsLEventListenner implements SmsEventListener{

    @Override
    public void sendSms(UserRegisterEvent userRegisterEvent) {
        //获取注册用户对象
        UserBean user = userRegisterEvent.getUser();
        //输出注册用户信息
        System.out.println("发送短信，用户名："+user.getName()+"，密码："+user.getPassword());
    }

}